<template>
    <h1>{{ result }}</h1>
  </template>
  
  <script lang="ts">
  import { defineComponent } from "vue";
  export default defineComponent({
    setup(){
        //这种写法难看又难以理解
      return new Promise((resolve) => {
        setTimeout(() => {
            return resolve({
                result:42
            })
        }, 3000);
      })
    }
  
  });
  </script>
  <style>
  </style>
  